//
// Decompiled by Jadx - 556ms
//
package gc;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.os.Message;
import android.text.TextUtils;
import android.widget.ImageView;
import androidx.activity.b;
import com.google.gson.Gson;
import de.robv.android.xposed.XposedHelpers;
import fh.c;
import fi.k;
import fi.w;
import fm.i;
import fn.j;
import fn.x;
import fn.y;
import java.io.File;
import java.io.Serializable;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;
import java.util.regex.Pattern;
import me.plusne.Adapter.Login.h;
import me.plusne.GreenDao.dao.SoulVoiceCollectDao;
import me.plusne.common.Json.JsonHookStatic;
import me.plusne.common.Json.Soul.JsonAutoLog;
import me.plusne.common.Json.Soul.JsonBubbleUri;
import me.plusne.common.Json.Soul.JsonHomepage;
import me.plusne.common.Json.Soul.JsonSoulBubble;
import me.plusne.common.Json.Soul.JsonSoulBubbleUri;
import me.plusne.common.Json.Soul.SoulSendMessageJson;
import org.luckypray.dexkit.query.matchers.MethodMatcher;
import org.luckypray.dexkit.result.ClassData;
import org.luckypray.dexkit.result.FieldData;
import org.luckypray.dexkit.result.MethodData;
import r.e;
import r.g;

public final class z extends x {
    public static MethodData cp;
    public static ClassData cq;
    public static MethodData cr;
    public static String cs;
    public static String ct;
    public static MethodData cu;
    public static MethodData cv;
    public static MethodData cw;
    public static MethodData cx;
    public static MethodData cy;
    public static MethodData cz;
    public static ClassData da;
    public static FieldData db;
    public static MethodData dc;
    public static MethodData dd;
    public static MethodData de;

    public static void df(boolean z) {
        JsonHookStatic jsonHookStatic = y.by;
        if (!z) {
            fi.y.e(jsonHookStatic.getActivity());
        }
        if (jsonHookStatic.getSoul().getSoulBubbleJson() != null && jsonHookStatic.getSoul().getSoulBubbleJson().getData() != null && !jsonHookStatic.getSoul().getSoulBubbleJson().getData().isEmpty()) {
            dl(z);
            return;
        }
        ac acVar = new ac();
        acVar.dd("https://api-pay.soulapp.cn/commodity/get-by-firstcategory?firstCategory=1200");
        acVar.dg(new s(z));
    }

    public static void dg(Object obj) {
        ConcurrentHashMap concurrentHashMap = (ConcurrentHashMap) XposedHelpers.getObjectField(dq(), bv.cp.getFieldName());
        String as = j.as(obj, "to");
        Object obj2 = concurrentHashMap.get(eb() + as);
        if (obj2 != null) {
            j.ab(obj2, cy.getMethodName(), new Object[]{Boolean.FALSE, null});
        }
    }

    public static void dh(Activity activity, String str, ImageView imageView, int i) {
        j.ab(j.ab(j.aa(j.ab(j.ad(j.ak("com.bumptech.glide.Glide"), "with", new Object[]{activity}), "load", new Object[]{str}), "circleCrop"), "transform", new Object[]{j.bk(j.ak("jp.wasabeef.glide.transformations.RoundedCornersTransformation"), new Object[]{Integer.valueOf(e.a(activity, i)), 0})}), "into", new Object[]{imageView});
    }

    public static void di(String str, int i, int i2) {
        Object du = du(i, str, i == 10 ? "[骰子]" : "[猜拳]");
        HashMap hashMap = new HashMap();
        hashMap.put("number", i2 + "");
        XposedHelpers.setObjectField(du, "dataMap", hashMap);
        Object ad = j.ad(j.ak(y.cj("Im")), y.by.getSoul().getToGroupMsg().getMethodName(), new Object[]{du, str});
        XposedHelpers.setIntField(ad, "msgStatus", 1);
        en(ad);
    }

    public static Object dj(Class<?> cls, String str, Object... objArr) {
        Object ad;
        Object ab;
        Class ak = j.ak("cn.soul.android.component.SoulRouter");
        if (ak == null || (ad = j.ad(ak, cs.cp.getMethodName(), new Object[0])) == null || (ab = j.ab(ad, cr.getMethodName(), new Object[]{cls})) == null) {
            return null;
        }
        return j.ab(ab, str, objArr);
    }

    public static void dk(String str, c cVar) {
        ac.dc("cn.soulapp.android.lib.common.upload.IUploadApi", "APIA", "getNewUploadToken", new u(cVar, str, 0), new Object[]{"chatNew", str, "AUDIO", do(eb())});
    }

    public static void dl(boolean z) {
        fi.y.d();
        JsonHookStatic jsonHookStatic = y.by;
        c cVar = new c(jsonHookStatic.getSoul().getSoulBubbleJson().getData());
        for (JsonSoulBubble.DataDTO dataDTO : jsonHookStatic.getSoul().getSoulBubbleJson().getData()) {
            y.co(dataDTO.getCommodityUrl(), "ChatBubble_" + ((JsonBubbleUri) b.c(dataDTO.getExtAttributes().replace("\\", ""), JsonBubbleUri.class)).getBubbleUri());
        }
        if (z) {
            return;
        }
        w wVar = new w(jsonHookStatic.getActivity());
        wVar.ab = cVar;
        wVar.bi("气泡设置");
        wVar.bj(fi.e.LIST_CUSTOM);
        wVar.bg("默认气泡");
        wVar.s = "随机气泡";
        wVar.bb();
        wVar.v = new h(20);
        wVar.bk();
    }

    public static String dm(String str) {
        return (String) j.ad(j.ak(y.cj("endata")), "decryption", new Object[]{str, y.by.getSoul().getUserIdDESUtilsPass()});
    }

    public static void dn(int i, Object obj, String str, String str2, String str3) {
        String str4;
        String str5 = null;
        try {
            str4 = str2.substring(str2.indexOf("[a]") + 3, str2.indexOf("[/a]"));
        } catch (StringIndexOutOfBoundsException unused) {
            str4 = null;
        }
        SoulSendMessageJson soulSendMessageJson = new SoulSendMessageJson();
        soulSendMessageJson.setKey(str3);
        try {
            str5 = str2.substring(str2.indexOf("[u]") + 3, str2.indexOf("[/u]"));
        } catch (StringIndexOutOfBoundsException unused2) {
        }
        boolean isEmpty = TextUtils.isEmpty(str5);
        JsonHookStatic jsonHookStatic = y.by;
        if (!isEmpty) {
            if (!str5.toLowerCase().startsWith("http") && !str5.toLowerCase().startsWith("https")) {
                File file = new File(str5);
                if (file.exists()) {
                    BitmapFactory.Options options = new BitmapFactory.Options();
                    BitmapFactory.decodeFile(str5, options);
                    j.ad(j.ak("cn.soulapp.android.client.component.middle.platform.utils.QiNiuHelper"), de.getMethodName(), new Object[]{file.getPath(), "", Boolean.FALSE, Proxy.newProxyInstance(jsonHookStatic.getClassLoader(), new Class[]{j.ak("cn.soulapp.android.client.component.middle.platform.utils.QiNiuHelper$NetCallback")}, new p(options.outHeight, options.outWidth, str5, soulSendMessageJson, obj, str, i))});
                    return;
                }
                return;
            }
            Object bl = j.bl("cn.soulapp.imlib.msg.chat.ImgMsg", new Object[0]);
            XposedHelpers.setIntField(bl, "imageH", -1);
            XposedHelpers.setIntField(bl, "imageW", -1);
            j.bn(bl, "imageLocalPath", "");
            j.bn(bl, "imageUrl", str5);
            jsonHookStatic.getMainHandler().postDelayed(new q(soulSendMessageJson, obj, str, bl, 0), i);
            return;
        }
        if (!TextUtils.isEmpty(str4)) {
            jsonHookStatic.getMainHandler().postDelayed(new r(str4, soulSendMessageJson, obj, str, 0), i);
        } else {
            jsonHookStatic.getMainHandler().postDelayed(new r(str2, soulSendMessageJson, obj, str, 1), i);
        }
    }

    public static String do(String str) {
        return (String) j.ad(j.ak(y.cj("endata")), "encryption", new Object[]{str, y.by.getSoul().getUserIdDESUtilsPass()});
    }

    public static String dp() {
        JsonSoulBubble.DataDTO dataDTO;
        JsonSoulBubbleUri jsonSoulBubbleUri;
        if (!j.ae("ChatBubbleCheck")) {
            return "";
        }
        String cf = y.cf("ChatBubble", "no");
        if (Objects.equals(cf, "no")) {
            cf = "";
        } else if (Objects.equals(cf, "random")) {
            JsonSoulBubble soulBubbleJson = y.by.getSoul().getSoulBubbleJson();
            if (soulBubbleJson == null || soulBubbleJson.getData() == null || soulBubbleJson.getData().isEmpty() || (dataDTO = (JsonSoulBubble.DataDTO) soulBubbleJson.getData().get(g.c(0, soulBubbleJson.getData().size()))) == null || (jsonSoulBubbleUri = (JsonSoulBubbleUri) b.c(dataDTO.getExtAttributes().replace("\\", ""), JsonSoulBubbleUri.class)) == null) {
                cf = "";
            } else {
                cf = jsonSoulBubbleUri.getBubbleUri();
            }
            if (TextUtils.isEmpty(cf)) {
                cf = new String[]{"yingxionglianmeng", "wanshengjie", "maozhua", "314white2", "xuexi", "23valentine04", "egg", "happytuyear", "hundan", "planet", "love", "happywinterday", "unicorn", "richest", "Tag", "panda", "summera", "corgi", "happyqixi", "dog1", "cat1", "longnian2024", "flower1", "human1"}[g.c(0, 24)];
            }
        }
        if (TextUtils.isEmpty(cf)) {
            Object ad = j.ad(j.ak("cn.soulapp.android.lib.common.utils.mmkv.SKV"), "single", new Object[0]);
            Object ea = ea();
            if (ea != null) {
                return (String) j.ab(ad, "getString", new Object[]{b.x(j.as(ea, "userIdEcpt"), "chat_bubble"), ""});
            }
            return cf;
        }
        return cf;
    }

    public static Object dq() {
        JsonHookStatic jsonHookStatic = y.by;
        Class ak = j.ak((!jsonHookStatic.isLogin() || jsonHookStatic.getUserInfo().getLevel() < 5) ? "cn.soulapp.imlib.ChatManager" : y.cj("ChatManager"));
        MethodData methodData = cz;
        if (methodData != null) {
            return j.ad(ak, methodData.getMethodName(), new Object[0]);
        }
        return null;
    }

    public static Object dr(Object obj) {
        if (obj == null) {
            return null;
        }
        try {
            return ((HashMap) XposedHelpers.getObjectField(obj, "maps")).get("MSGOBJECT");
        } catch (ClassCastException e) {
            e.printStackTrace();
            return ((ConcurrentHashMap) XposedHelpers.getObjectField(obj, "maps")).get("MSGOBJECT");
        }
    }

    public static Class<?> ds() {
        JsonHookStatic jsonHookStatic = y.by;
        if (jsonHookStatic.getSoul().getChatMsgDb() == null) {
            jsonHookStatic.getSoul().setChatMsgDb(j.ak("cn.soulapp.imlib.database.ChatMsgDb"));
        }
        return jsonHookStatic.getSoul().getChatMsgDb();
    }

    public static List dt() {
        JsonHookStatic jsonHookStatic = y.by;
        if (jsonHookStatic.getSoul().getChatLists() != null && !jsonHookStatic.getSoul().getChatLists().isEmpty()) {
            return jsonHookStatic.getSoul().getChatLists();
        }
        Object dq = dq();
        if (TextUtils.isEmpty(cs)) {
            Method[] methods = dq.getClass().getMethods();
            int length = methods.length;
            int i = 0;
            while (true) {
                if (i >= length) {
                    break;
                }
                Method method = methods[i];
                if (method.getReturnType().getName().equals("java.util.List") && method.getParameterTypes().length == 0) {
                    cs = method.getName();
                    break;
                }
                i++;
            }
        }
        Object aa = j.aa(dq, cs);
        if (aa == null) {
            return null;
        }
        return (List) aa;
    }

    public static Object du(int i, String str, String str2) {
        Object bk = j.bk(j.ak("cn.soulapp.imlib.msg.group.GroupMsg"), new Object[0]);
        XposedHelpers.setIntField(bk, "type", i);
        XposedHelpers.setBooleanField(bk, "saveDb", true);
        XposedHelpers.setObjectField(bk, "groupId", str);
        XposedHelpers.setObjectField(bk, "text", str2);
        Object ea = ea();
        HashMap hashMap = new HashMap();
        hashMap.put("avatarbg", (String) XposedHelpers.getObjectField(ea, "avatarBgColor"));
        hashMap.put("nickname", (String) XposedHelpers.getObjectField(ea, "signature"));
        hashMap.put("signature", (String) XposedHelpers.getObjectField(ea, "signature"));
        hashMap.put("avatar", (String) XposedHelpers.getObjectField(ea, "avatarName"));
        XposedHelpers.setObjectField(bk, "userInfoMap", hashMap);
        return bk;
    }

    public static String dv(Object obj) {
        return j.as(((HashMap) XposedHelpers.getObjectField(dr(obj), "maps")).get("MSGCONTENT"), "text");
    }

    public static void dw(String str, b bVar) {
        try {
            if (!Pattern.compile("[0-9]*").matcher(str).matches()) {
                str = dm(str);
            }
            ag agVar = new ag();
            agVar.ct("https://api-a.soulapp.cn/shara/app/url?postId=" + str + "&srcType=4&type=POSTHTML", new HashMap(), "GET");
            agVar.cv(new k(3, bVar));
        } catch (Exception e) {
            e.printStackTrace();
            bVar.a(e.getMessage());
        }
    }

    public static Object dx(int i, Object obj, String str) {
        Object bk = j.bk(j.ak("cn.soulapp.imlib.msg.chat.ChatMessage"), new Object[0]);
        String eb = eb();
        if (!TextUtils.isEmpty(eb)) {
            j.bn(bk, "sessionId", eb + str);
            XposedHelpers.setIntField(bk, "msgType", i);
            Object objectField = XposedHelpers.getObjectField(bk, "maps");
            Object objectField2 = XposedHelpers.getObjectField(bk, "extMap");
            String dp = dp();
            if (y.cf("ChatBubble_" + dp, "").endsWith(".gif")) {
                j.ab(objectField2, "put", new Object[]{"bubbleInfo", b.i("{\"has\":true,\"aggPictureCount\":8,\"bubbleFileOssPrefix\":\"", dp, "\",\"isDynamicBubble\":true,\"pictureIntervalTime\":100}")});
            }
            j.ab(objectField2, "put", new Object[]{"bubble", dp});
            j.ab(objectField, "put", new Object[]{"MSGCONTENT", obj});
            String dz = dz();
            long currentTimeMillis = System.currentTimeMillis();
            Object bk2 = j.bk(j.ak(y.cj("Im")), new Object[0]);
            XposedHelpers.setIntField(bk2, "msgStatus", 1);
            XposedHelpers.setLongField(bk2, "localTime", currentTimeMillis);
            XposedHelpers.setLongField(bk2, "serverTime", currentTimeMillis);
            j.bn(bk2, "from", eb);
            j.ab(XposedHelpers.getObjectField(bk2, "maps"), "put", new Object[]{"MSGOBJECT", bk});
            j.bn(bk2, "to", str);
            XposedHelpers.setIntField(bk2, "msgType", 1);
            j.bn(bk2, "msgId", dz);
            return bk2;
        }
        return null;
    }

    public static Object dy(String str, String str2) {
        Object bk = j.bk(j.ak("cn.soulapp.imlib.msg.chat.ChatMessage"), new Object[0]);
        String eb = eb();
        if (TextUtils.isEmpty(eb)) {
            return null;
        }
        XposedHelpers.setIntField(bk, "msgType", 25);
        long currentTimeMillis = System.currentTimeMillis();
        Object bk2 = j.bk(j.ak(y.cj("Im")), new Object[0]);
        XposedHelpers.setIntField(bk2, "msgStatus", 1);
        XposedHelpers.setLongField(bk2, "localTime", currentTimeMillis);
        XposedHelpers.setLongField(bk2, "serverTime", currentTimeMillis);
        j.bn(bk2, "from", eb);
        Object objectField = XposedHelpers.getObjectField(bk2, "maps");
        j.ab(objectField, "put", new Object[]{"MSGOBJECT", bk});
        j.ab(objectField, "put", new Object[]{"key_is_notify_readed", Boolean.TRUE});
        j.bn(bk2, "to", str);
        XposedHelpers.setIntField(bk2, "msgType", 1);
        j.bn(bk2, "msgId", str2);
        return bk2;
    }

    @SuppressLint({"DefaultLocale"})
    public static String dz() {
        return String.format("%013d", Long.valueOf(System.currentTimeMillis())) + String.format("%05d", Long.valueOf((long) (Math.random() * 100000.0d)));
    }

    public static Object ea() {
        return j.ad(j.ak("cn.soulapp.android.client.component.middle.platform.model.api.user.db.AccountDbManagerMMKV"), cp.getMethodName(), new Object[0]);
    }

    public static String eb() {
        return dm(j.as(ea(), "userIdEcpt"));
    }

    public static void ec(long j, int i, String str) {
        Object valueOf;
        ac acVar = new ac();
        StringBuilder sb = new StringBuilder("https://post.soulapp.cn/v4/post/homepage?lastId=");
        if (j < 1) {
            valueOf = "";
        } else {
            valueOf = Long.valueOf(j);
        }
        sb.append(valueOf);
        sb.append("&userIdEcpt=");
        sb.append(str);
        acVar.dd(sb.toString());
        Serializable serializable = (JsonHomepage) b.c(acVar.dh(), JsonHomepage.class);
        if (serializable.getCode() == 10001 && serializable.getData() != null && serializable.getData().getPostList() != null && serializable.getData().getPostList().size() > 0) {
            JsonHookStatic jsonHookStatic = y.by;
            if (jsonHookStatic.getHandler() != null) {
                Message message = new Message();
                Bundle bundle = new Bundle();
                bundle.putSerializable("key", serializable);
                bundle.putBoolean("isTip", true);
                bundle.putInt("type", i);
                message.setData(bundle);
                jsonHookStatic.getHandler().sendMessage(message);
            }
            try {
                if (((JsonHomepage.DataDTO.PostListDTO) serializable.getData().getPostList().get(serializable.getData().getPostList().size() - 1)).getId() > 0) {
                    ec(((JsonHomepage.DataDTO.PostListDTO) serializable.getData().getPostList().get(serializable.getData().getPostList().size() - 1)).getId(), i, str);
                }
            } catch (NullPointerException e) {
                e.printStackTrace();
            }
        }
    }

    public static Object ed() {
        JsonHookStatic jsonHookStatic = y.by;
        if (jsonHookStatic.getSoul().getBoxStore() == null) {
            return null;
        }
        return j.ab(jsonHookStatic.getSoul().getBoxStore(), jsonHookStatic.getSoul().getBoxStoreMethod(), new Object[]{ds()});
    }

    public static Object ee() {
        Object ed;
        JsonHookStatic jsonHookStatic = y.by;
        if (jsonHookStatic.getSoul().getBoxStore() == null || (ed = ed()) == null) {
            return null;
        }
        jsonHookStatic.getSoul().setObjectBoxQuery(j.aa(ed, fo.c.t(MethodMatcher.create().declaredClass(ed.getClass()).returnType("io.objectbox.query.QueryBuilder")).getMethodName()));
        return jsonHookStatic.getSoul().getObjectBoxQuery();
    }

    public static void ef(String str) {
        cs csVar = new cs("/account/userHomepage");
        csVar.cu("KEY_USER_ID_ECPT", str);
        csVar.cv();
    }

    public static boolean eg(Object obj) {
        if (obj == null) {
            return false;
        }
        return obj.getClass().getName().equals("cn.soulapp.imlib.msg.chat.ChatMessage");
    }

    public static void eh() {
        if (TextUtils.isEmpty(ct)) {
            return;
        }
        Object chatList = y.by.getSoul().getChatList();
        String str = ct;
        Boolean bool = Boolean.TRUE;
        j.ab(chatList, str, new Object[]{dt(), bool, bool});
    }

    public static void ei(String str) {
        if (TextUtils.isEmpty(str)) {
            return;
        }
        if (Pattern.compile("[0-9]*").matcher(str).matches()) {
            str = do(str);
        }
        i e = fn.b.e(2003, str);
        if (e != null) {
            JsonAutoLog jsonAutoLog = (JsonAutoLog) new Gson().fromJson(e.c, JsonAutoLog.class);
            jsonAutoLog.setRoundCount(jsonAutoLog.getRoundCount() + 1);
            fn.b.k(str, 2003, new Gson().toJson(jsonAutoLog), "");
        } else {
            ac acVar = new ac();
            acVar.dd("https://api-user.soulapp.cn/users/info?userIds=" + str);
            acVar.dg(new f(str, 1));
        }
    }

    public static void ej(a aVar, String str) {
        JsonHookStatic jsonHookStatic = y.by;
        if (jsonHookStatic.getDb() != null) {
            SoulVoiceCollectDao soulVoiceCollectDao = jsonHookStatic.getDb().y;
            soulVoiceCollectDao.getClass();
            ArrayList j = new a.g(soulVoiceCollectDao).j();
            if (!j.isEmpty()) {
                w wVar = new w(jsonHookStatic.getActivity());
                fh.j jVar = new fh.j(j, wVar, aVar, str);
                wVar.bi("收藏的语音");
                wVar.ab = jVar;
                wVar.bj(fi.e.LIST_CUSTOM);
                wVar.bk();
                wVar.c.setOnDismissListener(new w(0, jVar));
                return;
            }
            b.r(jsonHookStatic.getActivity(), "没有收藏的语音");
        }
    }

    public static void ek(String str, String str2) {
        Field field;
        try {
            field = XposedHelpers.findField(j.ak(y.cj("Room")), "jsonMsg");
        } catch (XposedHelpers.InvocationTargetError | NoSuchFieldError | NoSuchMethodError | NullPointerException e) {
            e.printStackTrace();
            j.bi(new Object[]{e});
            field = null;
        }
        em(dx(35, j.bk(field.getType(), new Object[]{"gift_notify", str2}), str));
    }

    public static void el(Object obj) {
        j.ab(dq(), dd.getMethodName(), new Object[]{obj});
        dg(obj);
        JsonHookStatic jsonHookStatic = y.by;
        if (jsonHookStatic.getSoul().getBaseConversationFragment() == null || !Objects.equals(j.as(obj, "to"), jsonHookStatic.getSoul().getToChatUserId())) {
            return;
        }
        j.ab(jsonHookStatic.getSoul().getBaseConversationFragment(), "insertSingleMsg", new Object[]{obj});
        j.aa(jsonHookStatic.getSoul().getBaseConversationFragment(), "onRefreshUi");
    }

    public static void em(Object obj) {
        Object obj2;
        Class ak = j.ak(y.cj("ChatManagerAdmin"));
        MethodData methodData = cz;
        if (methodData != null) {
            obj2 = j.ad(ak, methodData.getMethodName(), new Object[0]);
        } else {
            obj2 = null;
        }
        j.ab(obj2, dd.getMethodName(), new Object[]{obj});
        dg(obj);
        JsonHookStatic jsonHookStatic = y.by;
        if (jsonHookStatic.getSoul().getBaseConversationFragment() != null && Objects.equals(j.as(obj, "to"), jsonHookStatic.getSoul().getToChatUserId())) {
            j.ab(jsonHookStatic.getSoul().getBaseConversationFragment(), "insertSingleMsg", new Object[]{obj});
            j.aa(jsonHookStatic.getSoul().getBaseConversationFragment(), "onRefreshUi");
        }
    }

    public static void en(Object obj) {
        XposedHelpers.setIntField(obj, "msgStatus", 2);
        j.ab(dq(), dd.getMethodName(), new Object[]{obj});
        j.ab(XposedHelpers.getStaticObjectField(j.ak(da.getName()), db.getFieldName()), dc.getMethodName(), new Object[]{obj});
    }

    public static void eo(Object obj) {
        Object dq = dq();
        JsonHookStatic jsonHookStatic = y.by;
        j.ab(dq, jsonHookStatic.getSoul().getSendMessageSystem(), new Object[]{obj, Boolean.TRUE});
        dg(obj);
        if (jsonHookStatic.getSoul().getBaseConversationFragment() != null) {
            j.aa(jsonHookStatic.getSoul().getBaseConversationFragment(), "onRefreshUi");
        }
    }

    public static void ep(Object obj) {
        Object obj2;
        Class ak = j.ak(y.cj("ChatManagerAdmin"));
        MethodData methodData = cz;
        if (methodData != null) {
            obj2 = j.ad(ak, methodData.getMethodName(), new Object[0]);
        } else {
            obj2 = null;
        }
        JsonHookStatic jsonHookStatic = y.by;
        j.ab(obj2, jsonHookStatic.getSoul().getSendMessageSystem(), new Object[]{obj, Boolean.TRUE});
        dg(obj);
        if (jsonHookStatic.getSoul().getBaseConversationFragment() != null) {
            j.aa(jsonHookStatic.getSoul().getBaseConversationFragment(), "onRefreshUi");
        }
    }
}
